import { Entity, Column, PrimaryGeneratedColumn,PrimaryColumn } from 'typeorm';

@Entity('poetry',{
  comment:"诗词表"
})
export class Poetry {
  @Column({ default: "" })
  id: string;

  @PrimaryColumn()
  poetry_id: string;

  @Column({ default: "" })
  title: string;

  @Column({ default: "" })
  type: string;

  @Column({ default: "" })
  type_name: string;

  @Column({ default: "" })
  author: string;

  @Column({ type:"text" })
  paragraphs:string;//段落


  @Column({ default: "" })
  rhythmic: string;//词牌名

  @Column({type:"text" })
  biography:string;//传记

  @Column({type:"text" })
  prologue:string;//前言

  @Column({ default: "" })
  tags:string; //标签

  @Column({ type:"text" })
  notes:string; //注释
}